<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>ECharts</title>
    <!-- 引入 echarts.js -->
    <script src="js/echarts.min.js"></script>
    <script src="js/makeGauge.js"></script>
    <style>
        div {
            width: 400px;
            height: 400px;
            display: inline-block;
        }
    </style>
</head>
<body>
    <!-- 为ECharts准备一个具备大小（宽高）的Dom -->
    <div id="main"></div>
    <div id="main2"></div>
    <script type="text/javascript">
        makeGauge('main', [{value: 30}])
        makeGauge('main2', [{value: 60}])
    </script>
</body>
</html>